package com.wetao.module_homework.contract;

import com.wetao.lib_common.base.BaseListResponse;
import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.GetSubjectExamNumber;
import com.wetao.lib_common.bean.response.StudentExamListInfo;


import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2019-11-15 16:27
 * description:
 */
public interface HomeworkMainFragmentCon {

    interface View extends BaseViewImp {
        void getSubjectExamNumberResult(BaseListResponse<GetSubjectExamNumber> response);
        void getSubjectExamNumberFailed();

        void studentExamListResult(StudentExamListInfo response, int cur);
        void studentExamListFailed(int cur);

        void getCommitAnswerResult(BaseResponse response);
        void getCommitAnswerFailed();
    }

    abstract class Presenter extends BasePresenter<View> {
        public abstract void getSubjectExamNumber(String json, boolean isDialog, boolean isCancelable);
        public abstract void studentExamList(HashMap<String, String> map, boolean isDialog, boolean isCancelable, int cur);
        public abstract void getCommitAnswer(String json, boolean isDialog, String tip, boolean isCancelable);
    }
}
